var mysql =require("mysql");
module.exports={
    config: {
        host:'localhost',
        port:'3306',
        user:'root',
        password:'Zhao010301',
        database: 'wcproject',
        dateString: true,
        timezone:"08:00",
        multipleStatements:true
    },
    sqlConnect:function(sql,sqlArr,callback){
        var pool =mysql.createPool(this.config);
        pool.getConnection(function(error,connection){
            if (error) {
                console.log(error);
            }
            connection.query(sql,sqlArr,callback);
            connection.release();
        })
    }
}